# Copyright (C) 2020 Maxime Devos
# SPDX-License-Identifier: FSFAP
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.  This file is offered as-is,
# without any warranty.
(rehash-remirror-configuration
 (endpoints
  (proxy (content-addressed narfile))
  (substitutes (content-addressed narfile))
  (web-endpoints (active-downloads statistics tuning)))
 (servers
  (ci.guix.gnu.org
   (url "https://ci.guix.gnu.org")
   (guix-content-addressed? #t)
   (narinfo? #t)
   (narfile? #t))
  (tarballs.nixos.org
   (url "https://tarballs.nixos.org")
   (nix-tarballs-content-addressed? #t))
  (archive.softwareheritage.org
   (url "https://archive.softwareheritage.org")
   (swh-archive? #t)))
 (parameters
  (http-proxy system-default)
  (https-proxy system-default))
 (tuning
  (use-http? #t)
  (use-https? #t)
  (use-ftp? #t)
  (use-gnunet? #t)
  (wait-for-hash (seconds 4))
  (minimal-gnunet-performance
   (kind minimal-information/time-unit)
   (bandwith (/ (kibibytes 500)
                (seconds 1)))
   (window (seconds 5))))
 (access-control
  (allow-tune?
   (wait-for-hash #t)
   (minimal-gnunet-performance #t))
  (change-parameter?
   (use-http? #t)
   (use-https? #t)
   (use-ftp? #t)
   (use-gnunet? #t))
  (access-endpoint? #t))
 (listen-at
  (loopback-v4
   (application-protocol http)
   (expect-hostname "localhost")
   (address-family ipv4)
   (address localhost)
   (port 8081))
  (loopback-v6
   (application-protocol http)
   (expect-hostname "localhost")
   (address-family ipv6)
   (address localhost)
   (port 8081))))